package com.ruoyi.attendance.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.attendance.mapper.UnsignedRecordMapper;
import com.ruoyi.attendance.domain.UnsignedRecord;
import com.ruoyi.attendance.service.IUnsignedRecordService;

/**
 * 未签到用户Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-07
 */
@Service
public class UnsignedRecordServiceImpl implements IUnsignedRecordService 
{
    @Autowired
    private UnsignedRecordMapper unsignedRecordMapper;

    /**
     * 查询未签到用户
     * 
     * @param userId 未签到用户主键
     * @return 未签到用户
     */
    @Override
    public UnsignedRecord selectUnsignedRecordByUserId(Long userId)
    {
        return unsignedRecordMapper.selectUnsignedRecordByUserId(userId);
    }

    /**
     * 查询未签到用户列表
     * 
     * @param unsignedRecord 未签到用户
     * @return 未签到用户
     */
    @Override
    public List<UnsignedRecord> selectUnsignedRecordList(UnsignedRecord unsignedRecord)
    {
        return unsignedRecordMapper.selectUnsignedRecordList(unsignedRecord);
    }

    /**
     * 新增未签到用户
     * 
     * @param unsignedRecord 未签到用户
     * @return 结果
     */
    @Override
    public int insertUnsignedRecord(UnsignedRecord unsignedRecord)
    {
        return unsignedRecordMapper.insertUnsignedRecord(unsignedRecord);
    }

    /**
     * 修改未签到用户
     * 
     * @param unsignedRecord 未签到用户
     * @return 结果
     */
    @Override
    public int updateUnsignedRecord(UnsignedRecord unsignedRecord)
    {
        return unsignedRecordMapper.updateUnsignedRecord(unsignedRecord);
    }

    /**
     * 批量删除未签到用户
     * 
     * @param userIds 需要删除的未签到用户主键
     * @return 结果
     */
    @Override
    public int deleteUnsignedRecordByUserIds(Long[] userIds)
    {
        return unsignedRecordMapper.deleteUnsignedRecordByUserIds(userIds);
    }

    /**
     * 删除未签到用户信息
     * 
     * @param userId 未签到用户主键
     * @return 结果
     */
    @Override
    public int deleteUnsignedRecordByUserId(Long userId)
    {
        return unsignedRecordMapper.deleteUnsignedRecordByUserId(userId);
    }
}
